package com.forekonw.demo9;

public class Manager {
    public void M1(B b){
        b.method3();
    }

    public B M2(){
        B bbb = new BImpl();
        return bbb;
    }
    public static void main(String[] args) {
        Manager manager = new Manager();
        B bb = new BImpl();
        manager.M1(bb);
        B bbbb = manager.M2();
        bbbb.method3();
    }
}
